package demo02;

public class Demo01PhoneOne {
    public static void main(String[] args) {
        //根据phone类，创建一个名为one的对象
        //格式：类名称 对象名 = new 类名称();
        Phone one =new Phone();
        System.out.println(one.brand);//null
        System.out.println(one.price);//0.0
        System.out.println(one.color);//null

        one.brand ="苹果";
        one.color="black";
        one.price=8888;
        System.out.println(one.price);
        System.out.println(one.brand );
        System.out.println(one.color );
        System.out.println("================");

         one.call("乔布斯");
         one.sendMessage();
    }
}
